<?php
$this->breadcrumbs=array(
	Yii::t('yii','Programs'),
);

$this->menu=array(
	array(Yii::t('yii','Create Programs'), array('create'),'visible'=>Yii::app()->user->hasAuth(Group::TEACHER)),
	array(Yii::t('yii','Manage Programs'), array('admin'),'visible'=>Yii::app()->user->hasAuth(Group::TEACHER)),
);
?>

<h1><?php echo $message; ?><?php echo Yii::t('yii','Programs'); ?></h1>

<?php $this->widget('textedit.components.TextEditor', array('id'=>'Programsindex')); ?>

<h3><?php echo Yii::t('yii','Categories'); ?></h3>
<b><?php echo Html::link(Yii::t('yii','All'),array('programs/index')); ?></b> | 
<b><?php echo Html::link(Yii::t('yii','Calculators'),array('programs/index','category'=>'1')); ?></b> | 
<b><?php echo Html::link(Yii::t('yii','Games'),array('programs/index','category'=>'2')); ?></b> |
<b><?php echo Html::link(Yii::t('yii','Fun'),array('programs/index','category'=>'3')); ?></b> |
<b><?php echo Html::link(Yii::t('yii','Maps'),array('programs/index','category'=>'4')); ?></b> |
<b><?php echo Html::link(Yii::t('yii','Others'),array('programs/index','category'=>'5')); ?></b> |
<b><?php echo Html::link(Yii::t('yii','Last'),array('programs/last')); ?></b> 
<br/>
<br/>
<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_program',
)); ?>

<br/>
<br/>
<br/>
<br/>
